# !/bin/bash
# 用于菜单设计

PS3="Choices?"
select choices # in query add delete update list exit 
do
	case "$choices" in
		$1) echo "Call $1 routine."
			break;;
		$2) echo "Call $2 routine."
			break;;
		$3) echo "Call $3 routine."
			break;;
		$4) echo "Call $4 routine."
			break;;
		$5) echo "Call $5 routine."
			break;;
		$6) echo "Call $6 routine."
			break;;
	esac
done
echo "Your choice is $choices"


# REPLY 环境变量 用于接收用户输入的数值
# identfier(choices) 根据输入的数值替换对应的字符串。如果用户未输入则为null